<%@ page import="javax.servlet.*"%>

<%
	try
	{
		ServletOutputStream sout = response.getOutputStream();
		response.setContentType("application/octet-stream"); 
	    response.setHeader("Content-Disposition","attachment; filename=\"forceDown.txt\"");
		
		String content = "Grails是一个很棒的快速开发框架";
		sout.write(content.getBytes());
		sout.close();
		
	}catch(Exception e)
	{
		e.printStackTrace();
	}
%>
